package com.ruicar.afs.cloud.afscase.approvetask.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruicar.afs.cloud.afscase.approveocr.entity.ApproveOcrBatch;
import com.ruicar.afs.cloud.afscase.approvetask.entity.CaseApproveRecord;
import com.ruicar.afs.cloud.afscase.approvetask.entity.WorkTaskPool;

/**
 * <p>Description: </p>
 *
 * @author ZC.GUO
 * @version 1.0
 * @date create on 2020-05-13 15:19
 */
public interface CaseApproveRecordService extends IService<CaseApproveRecord> {

    /**
     * @Description 重写保存方法，保证日志id生成顺序以及排序使用正常
     * @Author Peng_Jinbo
     * @Date 2020/9/23 0:50
     */
    @Override
    boolean save(CaseApproveRecord record);

    /**
    * @Description 保存ocr退回记录日志
    * @Author Peng_Jinbo
    * @Date 2020/9/5 10:37
    */
    void ocrSendBack(ApproveOcrBatch ocrBatch);

    /**
    * @Description 退回、提交后重新进入人工签名确认队列
    * @Author Peng_Jinbo
    * @Date 2020/9/12 16:35
    */
    void repeatIntoOcr(ApproveOcrBatch ocrBatch);

    /**
    * @Description 发起指定处理人流程
    * @Author Peng_Jinbo
    * @Date 2020/9/8 21:19
    */
    void appoint(String applyNo);

    /**
    * @Description 任务分配至人员时记录
    * @Author Peng_Jinbo
    * @Date 2020/9/10 20:35
    */
    void taskArrival(WorkTaskPool pool);

    /**
    * @Description 无流程撤销案件
    * @Author Peng_Jinbo
    * @Date 2020/10/15 14:33
    */
    void repeal(String applyNo,String msg);

    /**
     * 放款分配到个人之后记录表新增一条分单到达记录
     */
    void assignRecord(WorkTaskPool pool);


}
